<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: include/container/heap.hpp 源文件</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="../../dir_e0f5f6345e438c73b9ae78ec2940718c.html">container</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="headertitle"><div class="title">heap.hpp</div></div>
</div><!--header-->
<div class="contents">
<a href="../../da/d45/heap_8hpp.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span> </div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="preprocessor">#include &lt;typte_traits&gt;</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="preprocessor">#include &lt;deque&gt;</span>  </div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span><span class="preprocessor">#include &lt;functional&gt;</span>  </div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="preprocessor">#include &lt;iterator&gt;</span>  </div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="preprocessor">#include &lt;utility&gt;</span>  </div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span><span class="preprocessor">#include &lt;vector&gt;</span>  </div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="preprocessor">#include &lt;algorithm&gt;</span>  </div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span> </div>
<div class="foldopen" id="foldopen00017" data-start="{" data-end="}">
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"><a class="line" href="../../d2/d9e/namespacewheels_1_1container.html">   17</a></span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../df/d8d/namespacewheels.html">wheels</a> { <span class="keyword">namespace </span>container{</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span> </div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="keyword">template</span>&lt;<span class="keyword">typename</span> Key, <span class="keyword">typename</span> Value, <span class="keywordtype">bool</span> isLess = true&gt;  </div>
<div class="foldopen" id="foldopen00020" data-start="{" data-end="};">
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="../../d9/daf/classwheels_1_1container_1_1heap.html">   20</a></span><span class="keyword">class </span><a class="code hl_class" href="../../d9/daf/classwheels_1_1container_1_1heap.html">heap</a> {  </div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="keyword">public</span>:  </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="../../d9/daf/classwheels_1_1container_1_1heap.html#afa9a85f112517fd6b174136b0e148a35">   22</a></span>    <span class="keyword">using </span><a class="code hl_typedef" href="../../d9/daf/classwheels_1_1container_1_1heap.html#afa9a85f112517fd6b174136b0e148a35">key_type</a> = Key;  </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="../../d9/daf/classwheels_1_1container_1_1heap.html#a19518d3d04725b5b24c4d0c944f3c2cd">   23</a></span>    <span class="keyword">using </span><a class="code hl_typedef" href="../../d9/daf/classwheels_1_1container_1_1heap.html#a19518d3d04725b5b24c4d0c944f3c2cd">value_type</a> = Value;  </div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span>    </div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span><span class="keyword">private</span>:  </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span>    <span class="keyword">struct </span>Node {  </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span>        Key key;  </div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span>        Value value;  </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span>  </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span>        <span class="keywordtype">bool</span> operator&lt;(<span class="keyword">const</span> Node&amp; b)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> key &lt; b.key; }  </div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span>        <span class="keywordtype">bool</span> operator&gt;(<span class="keyword">const</span> Node&amp; b)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> key &gt; b.key; }  </div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span>    };  </div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span>  </div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span>    <span class="keyword">using </span>Compare = std::conditional_t&lt;isLess, std::less&lt;Node&gt;, std::greater&lt;Node&gt;&gt;;  </div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span>  </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span><span class="keyword">private</span>:  </div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span>    std::deque&lt;Node&gt; m_data__;  </div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span>    Compare m_cmp;  </div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno">   39</span>  </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span><span class="keyword">public</span>:  </div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="../../d9/daf/classwheels_1_1container_1_1heap.html#a0c0bb3a4a359d9ce961c599809c409e2">   41</a></span>    <a class="code hl_function" href="../../d9/daf/classwheels_1_1container_1_1heap.html#a0c0bb3a4a359d9ce961c599809c409e2">heap</a>() : m_cmp(Compare()) {}  </div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="../../d9/daf/classwheels_1_1container_1_1heap.html#a3536f084745e7c7a075011c3e50cb663">   42</a></span>    <span class="keyword">virtual</span> <a class="code hl_function" href="../../d9/daf/classwheels_1_1container_1_1heap.html#a3536f084745e7c7a075011c3e50cb663">~heap</a>() {}  </div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span>  </div>
<div class="foldopen" id="foldopen00044" data-start="{" data-end="}">
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="../../d9/daf/classwheels_1_1container_1_1heap.html#a95552ba64aadd51c3e975867aa7a14da">   44</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d9/daf/classwheels_1_1container_1_1heap.html#a95552ba64aadd51c3e975867aa7a14da">insert</a>(<span class="keyword">const</span> Key&amp; key, <span class="keyword">const</span> Value&amp; value) {  </div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span>        Node node{key, value};  </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span>        m_data__.push_back(node);  </div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span>        std::push_heap(m_data__.begin(), m_data__.end(), m_cmp);  </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span>    }  </div>
</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span>  </div>
<div class="foldopen" id="foldopen00050" data-start="{" data-end="}">
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="../../d9/daf/classwheels_1_1container_1_1heap.html#a14ea76518cc3b336c6f5a283b0b1f372">   50</a></span>    std::pair&lt;Key, Value&gt; <a class="code hl_function" href="../../d9/daf/classwheels_1_1container_1_1heap.html#a14ea76518cc3b336c6f5a283b0b1f372">pop</a>() {  </div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno">   51</span>        std::pop_heap(m_data__.begin(), m_data__.end(), m_cmp);  </div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span>        Node top_node = m_data__.back();  </div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span>        m_data__.pop_back();  </div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span>        <span class="keywordflow">return</span> std::make_pair(top_node.key, top_node.value);  </div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno">   55</span>    }  </div>
</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span>  </div>
<div class="foldopen" id="foldopen00057" data-start="{" data-end="}">
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="../../d9/daf/classwheels_1_1container_1_1heap.html#aaf0477fb1b86af6cb4bafc2124b3f244">   57</a></span>    <span class="keywordtype">bool</span> <a class="code hl_function" href="../../d9/daf/classwheels_1_1container_1_1heap.html#aaf0477fb1b86af6cb4bafc2124b3f244">empty</a>()<span class="keyword"> const </span>{  </div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span>        <span class="keywordflow">return</span> m_data__.empty();  </div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno">   59</span>    }  </div>
</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span>  </div>
<div class="foldopen" id="foldopen00061" data-start="{" data-end="}">
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="../../d9/daf/classwheels_1_1container_1_1heap.html#a2138098e1df2a651b2d702bc3bd0a811">   61</a></span>    <span class="keywordtype">size_t</span> <a class="code hl_function" href="../../d9/daf/classwheels_1_1container_1_1heap.html#a2138098e1df2a651b2d702bc3bd0a811">size</a>()<span class="keyword"> const </span>{  </div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span>        <span class="keywordflow">return</span> m_data__.size();  </div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span>    }  </div>
</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span>  </div>
<div class="foldopen" id="foldopen00065" data-start="{" data-end="}">
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"><a class="line" href="../../d9/daf/classwheels_1_1container_1_1heap.html#afa97b868795afe49aacda60449b84a37">   65</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d9/daf/classwheels_1_1container_1_1heap.html#afa97b868795afe49aacda60449b84a37">erase</a>(<span class="keyword">const</span> Key&amp; key) {  </div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span>        <span class="keyword">auto</span> it = std::find_if(m_data__.begin(), m_data__.end(), [key](<span class="keyword">const</span> Node&amp; node) {  </div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno">   67</span>            return node.key == key;  </div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span>        });  </div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span>        <span class="keywordflow">if</span> (it != m_data__.end()) {  </div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span>            std::pop_heap(m_data__.begin(), it + 1, m_cmp);  </div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span>            m_data__.erase(it);  </div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span>            std::make_heap(m_data__.begin(), m_data__.end(), m_cmp);  </div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span>        }  </div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span>    }  </div>
</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span>  </div>
<div class="foldopen" id="foldopen00081" data-start="{" data-end="}">
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"><a class="line" href="../../d9/daf/classwheels_1_1container_1_1heap.html#a2fcab875723b88c872db475740644fab">   81</a></span>    iterator <a class="code hl_function" href="../../d9/daf/classwheels_1_1container_1_1heap.html#a2fcab875723b88c872db475740644fab">find</a>(<span class="keyword">const</span> Key&amp; key) {</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span>        <span class="keywordflow">for</span>( <span class="keyword">auto</span> it = m_data__.begin(); it != m_data__.end(); ++it ){</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span>            <span class="keywordflow">if</span>( it-&gt;key == key ) <span class="keywordflow">return</span> it;</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span>        }</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span> </div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span>        <span class="keywordflow">return</span> m_data__.end();</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span>    }</div>
</div>
<div class="foldopen" id="foldopen00092" data-start="{" data-end="}">
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"><a class="line" href="../../d9/daf/classwheels_1_1container_1_1heap.html#aa6921120ad7784c22e133253a1163246">   92</a></span>    <span class="keywordtype">bool</span> <a class="code hl_function" href="../../d9/daf/classwheels_1_1container_1_1heap.html#aa6921120ad7784c22e133253a1163246">has</a>( <span class="keyword">const</span> Key&amp; key ){</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno">   93</span>        <span class="keywordflow">for</span>( <span class="keyword">auto</span> it = m_data__.begin(); it != m_data__.end(); ++it ){</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno">   94</span>            <span class="keywordflow">if</span>( it-&gt;key == key ) <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno">   95</span>        }</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno">   96</span> </div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno">   97</span>        <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno">   98</span>    }</div>
</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno">   99</span>  </div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno">  100</span>  </div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"><a class="line" href="../../d9/daf/classwheels_1_1container_1_1heap.html#a77a8316b3b781555ec4de6aade444e2a">  101</a></span>    <span class="keyword">auto</span> <a class="code hl_function" href="../../d9/daf/classwheels_1_1container_1_1heap.html#a77a8316b3b781555ec4de6aade444e2a">begin</a>() { <span class="keywordflow">return</span> m_data__.begin(); }  </div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"><a class="line" href="../../d9/daf/classwheels_1_1container_1_1heap.html#a61a7fdbb01dc4ecb96e8695b4e401cda">  102</a></span>    <span class="keyword">auto</span> <a class="code hl_function" href="../../d9/daf/classwheels_1_1container_1_1heap.html#a61a7fdbb01dc4ecb96e8695b4e401cda">end</a>() { <span class="keywordflow">return</span> m_data__.end(); }  </div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno">  103</span>};</div>
</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno">  104</span>    </div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno">  105</span>}}</div>
</div>
<div class="ttc" id="aclasswheels_1_1container_1_1heap_html"><div class="ttname"><a href="../../d9/daf/classwheels_1_1container_1_1heap.html">wheels::container::heap</a></div><div class="ttdef"><b>定义</b> <a href="#l00020">heap.hpp:20</a></div></div>
<div class="ttc" id="aclasswheels_1_1container_1_1heap_html_a0c0bb3a4a359d9ce961c599809c409e2"><div class="ttname"><a href="../../d9/daf/classwheels_1_1container_1_1heap.html#a0c0bb3a4a359d9ce961c599809c409e2">wheels::container::heap::heap</a></div><div class="ttdeci">heap()</div><div class="ttdef"><b>定义</b> <a href="#l00041">heap.hpp:41</a></div></div>
<div class="ttc" id="aclasswheels_1_1container_1_1heap_html_a14ea76518cc3b336c6f5a283b0b1f372"><div class="ttname"><a href="../../d9/daf/classwheels_1_1container_1_1heap.html#a14ea76518cc3b336c6f5a283b0b1f372">wheels::container::heap::pop</a></div><div class="ttdeci">std::pair&lt; Key, Value &gt; pop()</div><div class="ttdef"><b>定义</b> <a href="#l00050">heap.hpp:50</a></div></div>
<div class="ttc" id="aclasswheels_1_1container_1_1heap_html_a19518d3d04725b5b24c4d0c944f3c2cd"><div class="ttname"><a href="../../d9/daf/classwheels_1_1container_1_1heap.html#a19518d3d04725b5b24c4d0c944f3c2cd">wheels::container::heap::value_type</a></div><div class="ttdeci">Value value_type</div><div class="ttdef"><b>定义</b> <a href="#l00023">heap.hpp:23</a></div></div>
<div class="ttc" id="aclasswheels_1_1container_1_1heap_html_a2138098e1df2a651b2d702bc3bd0a811"><div class="ttname"><a href="../../d9/daf/classwheels_1_1container_1_1heap.html#a2138098e1df2a651b2d702bc3bd0a811">wheels::container::heap::size</a></div><div class="ttdeci">size_t size() const</div><div class="ttdef"><b>定义</b> <a href="#l00061">heap.hpp:61</a></div></div>
<div class="ttc" id="aclasswheels_1_1container_1_1heap_html_a2fcab875723b88c872db475740644fab"><div class="ttname"><a href="../../d9/daf/classwheels_1_1container_1_1heap.html#a2fcab875723b88c872db475740644fab">wheels::container::heap::find</a></div><div class="ttdeci">iterator find(const Key &amp;key)</div><div class="ttdoc">查找指定key的内容</div><div class="ttdef"><b>定义</b> <a href="#l00081">heap.hpp:81</a></div></div>
<div class="ttc" id="aclasswheels_1_1container_1_1heap_html_a3536f084745e7c7a075011c3e50cb663"><div class="ttname"><a href="../../d9/daf/classwheels_1_1container_1_1heap.html#a3536f084745e7c7a075011c3e50cb663">wheels::container::heap::~heap</a></div><div class="ttdeci">virtual ~heap()</div><div class="ttdef"><b>定义</b> <a href="#l00042">heap.hpp:42</a></div></div>
<div class="ttc" id="aclasswheels_1_1container_1_1heap_html_a61a7fdbb01dc4ecb96e8695b4e401cda"><div class="ttname"><a href="../../d9/daf/classwheels_1_1container_1_1heap.html#a61a7fdbb01dc4ecb96e8695b4e401cda">wheels::container::heap::end</a></div><div class="ttdeci">auto end()</div><div class="ttdef"><b>定义</b> <a href="#l00102">heap.hpp:102</a></div></div>
<div class="ttc" id="aclasswheels_1_1container_1_1heap_html_a77a8316b3b781555ec4de6aade444e2a"><div class="ttname"><a href="../../d9/daf/classwheels_1_1container_1_1heap.html#a77a8316b3b781555ec4de6aade444e2a">wheels::container::heap::begin</a></div><div class="ttdeci">auto begin()</div><div class="ttdef"><b>定义</b> <a href="#l00101">heap.hpp:101</a></div></div>
<div class="ttc" id="aclasswheels_1_1container_1_1heap_html_a95552ba64aadd51c3e975867aa7a14da"><div class="ttname"><a href="../../d9/daf/classwheels_1_1container_1_1heap.html#a95552ba64aadd51c3e975867aa7a14da">wheels::container::heap::insert</a></div><div class="ttdeci">void insert(const Key &amp;key, const Value &amp;value)</div><div class="ttdef"><b>定义</b> <a href="#l00044">heap.hpp:44</a></div></div>
<div class="ttc" id="aclasswheels_1_1container_1_1heap_html_aa6921120ad7784c22e133253a1163246"><div class="ttname"><a href="../../d9/daf/classwheels_1_1container_1_1heap.html#aa6921120ad7784c22e133253a1163246">wheels::container::heap::has</a></div><div class="ttdeci">bool has(const Key &amp;key)</div><div class="ttdoc">判断是否存在key为指定内容的数据</div><div class="ttdef"><b>定义</b> <a href="#l00092">heap.hpp:92</a></div></div>
<div class="ttc" id="aclasswheels_1_1container_1_1heap_html_aaf0477fb1b86af6cb4bafc2124b3f244"><div class="ttname"><a href="../../d9/daf/classwheels_1_1container_1_1heap.html#aaf0477fb1b86af6cb4bafc2124b3f244">wheels::container::heap::empty</a></div><div class="ttdeci">bool empty() const</div><div class="ttdef"><b>定义</b> <a href="#l00057">heap.hpp:57</a></div></div>
<div class="ttc" id="aclasswheels_1_1container_1_1heap_html_afa97b868795afe49aacda60449b84a37"><div class="ttname"><a href="../../d9/daf/classwheels_1_1container_1_1heap.html#afa97b868795afe49aacda60449b84a37">wheels::container::heap::erase</a></div><div class="ttdeci">void erase(const Key &amp;key)</div><div class="ttdef"><b>定义</b> <a href="#l00065">heap.hpp:65</a></div></div>
<div class="ttc" id="aclasswheels_1_1container_1_1heap_html_afa9a85f112517fd6b174136b0e148a35"><div class="ttname"><a href="../../d9/daf/classwheels_1_1container_1_1heap.html#afa9a85f112517fd6b174136b0e148a35">wheels::container::heap::key_type</a></div><div class="ttdeci">Key key_type</div><div class="ttdef"><b>定义</b> <a href="#l00022">heap.hpp:22</a></div></div>
<div class="ttc" id="anamespacewheels_html"><div class="ttname"><a href="../../df/d8d/namespacewheels.html">wheels</a></div><div class="ttdoc">堆栈信息读取和保存记录</div><div class="ttdef"><b>定义</b> <a href="../../d3/df7/ary__str_8hpp_source.html#l00006">ary_str.hpp:7</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
